-- GENERATED SPELL FOR [Onslaught Raven Archon] --


function spell0_27357(pUnit, Event) --@Raven Flock,n/a--
pUnit:FullCastSpellOnTarget(50740,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27357', 3000, 1)
end

function spell1_27357(pUnit, Event) --@Unholy Frenzy,n/a--
pUnit:FullCastSpellOnTarget(50743,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27357', 15291, 1)
end

function Sorts_27357(pUnit, Event)
local choix_sorts_27357 = math.random(0, 1)
if choix_sorts_27357 == 0 then
pUnit:RegisterEvent('spell0_27357', 1, 1)
end
if choix_sorts_27357 == 1 then
pUnit:RegisterEvent('spell1_27357', 1, 1)
end
end

function mob27357_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27357', math.random(1500, 3000), 1)
end

function mob27357_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27357_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27357_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27357, 1, 'mob27357_Action')
RegisterUnitEvent(27357, 2, 'mob27357_Leave')
RegisterUnitEvent(27357, 3, 'mob27357_Kill')
RegisterUnitEvent(27357, 4, 'mob27357_Die')
